package com.googlecode.project4uz.demo;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;

import org.openrdf.rio.RDFFormat;
import org.openrdf.rio.RDFHandlerException;
import org.openrdf.rio.RDFParseException;

import com.googlecode.project4uz.decoder.RioReader;

/**
 * Prezentacja funkcjonalnosci dekodera.
 * 
 * @author Piotr Broniszewski
 * @author Artur Gertych
 * @author Daniel Kur
 */
public class RDFDecoderDemo
{
	public static void main(String[] args) throws NumberFormatException, RDFParseException, RDFHandlerException, SecurityException, IllegalArgumentException, IOException, NoSuchMethodException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchFieldException
	{	
		RioReader reader = new RioReader(RDFFormat.RDFXML, new BufferedInputStream(new FileInputStream("test.rdf")));		
		SimpleClassForSerialize o = (SimpleClassForSerialize)reader.readObject();
		System.out.println(o);
	}
}
